package com.martini.satoken01.model.dto;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.time.LocalDate;

/**
 * @author martini at 2021/12/19 9:51
 */
@Data
@Accessors(chain = true)
public class UserRegInfoDTO {
    @NotBlank(message = "用户名不能为空")
    private String username;
    @NotBlank(message = "密码不能为空")
    private String password;
    @Email
    private String email;
    private LocalDate birthday;
    @NotBlank(message = "昵称不能为空")
    private String nickname;
}
